package com.course02.order_backend.entity.LXY;
import java.time.LocalDateTime;

/**
 * 权限实体类（对应 tb_permission 表）
 * @author wozhe
 */
public class Permission {
    private Long id;
    // 权限名称，如“用户管理”
    private String label;
    // 父权限ID
    private Long parentId;
    // 父权限名称
    private String parentName;
    // 权限码，如 system:user:add
    private String code;
    // 类型：0=目录，1=菜单，2=按钮
    private Byte type;
    // 前端路由路径
    private String path;
    // 前端路由名称
    private String name;
    // 后端接口路径
    private String url;
    // 图标
    private String icon;
    // 排序
    private Integer orderNum;
    private LocalDateTime createTime;

    // ========== Getter 和 Setter ==========

    public Long getId() {
        return id;
    }

    public void setId(Long id) {
        this.id = id;
    }

    public String getLabel() {
        return label;
    }

    public void setLabel(String label) {
        this.label = label;
    }

    public Long getParentId() {
        return parentId;
    }

    public void setParentId(Long parentId) {
        this.parentId = parentId;
    }

    public String getParentName() {
        return parentName;
    }

    public void setParentName(String parentName) {
        this.parentName = parentName;
    }

    public String getCode() {
        return code;
    }

    public void setCode(String code) {
        this.code = code;
    }

    public Byte getType() {
        return type;
    }

    public void setType(Byte type) {
        this.type = type;
    }

    public String getPath() {
        return path;
    }

    public void setPath(String path) {
        this.path = path;
    }

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public String getUrl() {
        return url;
    }

    public void setUrl(String url) {
        this.url = url;
    }

    public String getIcon() {
        return icon;
    }

    public void setIcon(String icon) {
        this.icon = icon;
    }

    public Integer getOrderNum() {
        return orderNum;
    }

    public void setOrderNum(Integer orderNum) {
        this.orderNum = orderNum;
    }

    public LocalDateTime getCreateTime() {
        return createTime;
    }

    public void setCreateTime(LocalDateTime createTime) {
        this.createTime = createTime;
    }
}
